home *** CD-ROM | disk | FTP | other *** search
- Subject: Dashed lines
- Sent: 6/20/96 6:32 PM
- Received: 6/24/96 8:26 AM
- From: Bill Hembree, whembree@Sigma4.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- We would like to draw thick dashed lines, but for some reason ODF prohibits
- this. The following code is from the SLRender.cpp file:
-
- FW_Boolean styleIsDash = MacSelectInkAndStyle(device,
- FW_kLineShape,
- FW_kFrame, // We never use
- FW_kFill for lines
- ink,
- style);
-
- short halfPenh = FW_QDGlobals.thePort->pnSize.h / 2;
- short halfPenv = FW_QDGlobals.thePort->pnSize.v / 2;
-
- ::MoveTo(plfmStart.h - halfPenh, plfmStart.v - halfPenv);
-
- if (styleIsDash && halfPenh == 0 && halfPenv == 0)
- {
- FW_CPrivMacDashDraw draw(style->GetDashStyle());
- draw.LineTo(plfmEnd.h - halfPenh, plfmEnd.v - halfPenv);
- }
- else
- {
- ::LineTo(plfmEnd.h - halfPenh, plfmEnd.v - halfPenv);
- }
-
-
- Clearly, if you've got a line that's thicker than a hairline, it's not
- going to be dashed. Is there any reason for this??
-
- Bill, Martin & the Sigma4 gang.
-
-